package com.aaa.threadcommunication;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/11/1
 */
public class Boy extends Thread{
    private Card card;

    public Boy(Card card) {
        this.card = card;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            card.save(1000);
        }
    }
}
